package ncku.account.event.old;

import ncku.account.data.*;
import java.util.*;

public class listCategory {
	
	public void listCategory(){
		List<String> result=new ArrayList<String>();
		System.out.println("List of Categories: ");
		
		for(int i = 0; i < GlobalData.getCategoryNumber(); i++){
			result.add(GlobalData.getCategory(i).getName());
		}
		Set<String> catg = new LinkedHashSet<String>(result);
		
		System.out.println(catg);
		
	}
}